﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Community.CsharpSqlite
{
    class OPFlag
    {

        /* Properties such as "out2" or "jump" that are specified in
    ** comments following the "case" for each opcode in the vdbe.c
    ** are encoded into bitvectors as follows:
    */
        //#define OPFLG_JUMP            0x0001  /* jump:  P2 holds jmp target */
        //#define OPFLG_OUT2_PRERELEASE 0x0002  /* out2-prerelease: */
        //#define OPFLG_IN1             0x0004  /* in1:   P1 is an input */
        //#define OPFLG_IN2             0x0008  /* in2:   P2 is an input */
        //#define OPFLG_IN3             0x0010  /* in3:   P3 is an input */
        //#define OPFLG_OUT2            0x0020  /* out2:  P2 is an output */
        //#define OPFLG_OUT3            0x0040  /* out3:  P3 is an output */

        public const int OPFLG_JUMP = 0x0001; /* jump:  P2 holds jmp target */
        public const int OPFLG_OUT2_PRERELEASE = 0x0002; /* out2-prerelease: */
        public const int OPFLG_IN1 = 0x0004; /* in1:   P1 is an input */
        public const int OPFLG_IN2 = 0x0008; /* in2:   P2 is an input */
        public const int OPFLG_IN3 = 0x0010; /* in3:   P3 is an input */
        public const int OPFLG_OUT2 = 0x0020; /* out2:  P2 is an output */
        public const int OPFLG_OUT3 = 0x0040; /* out3:  P3 is an output */
    }
}
